<template>
	<view>
		<u-navbar title="会员中心" :leftIcon='none' :placeholder='true' :autoBack="false">
			
		</u-navbar>
		
		<view class="infobox u-p-30 u-m-t-20">
			<image src="../../static/logo.png" mode=""></image>
			<view class="infoitem u-m-l-30">
				<text>注注册</text>
				<text>开通会员！</text>
			</view>
		</view>
		<view class="member">
			<view class="memberitem u-p-30 u-radius-20" :class="current==index?'active':''" @click="choose(index)" v-for="(i,index) in memberlist">
				<text>1个月</text>
				
				<view class="u-m-tb-30 price">
					<text>￥</text>
					<text class="u-font-46" >15</text>
				</view>
				<view class="" style="color: #999;">
					联合月卡
				</view>
			</view>
		</view>
		
		<view class="update u-p-20" @click="$goTo('/pagesT/index/index')" >
			立即升级
		</view>
		<parentstabbar :value='1'> </parentstabbar>
	</view>
</template>

<script>
	import parentstabbar from '../../components/parentstabbar.vue'
	export default {
		components:{
			parentstabbar
		},
		data() {
			return {
				memberlist:[{},{},{},{}],
				current:0
			};
		},
		methods:{
			choose(index){
				this.current = index
			},
		}
	}
</script>

<style lang="scss" scoped >
.infobox{
	display: flex;
	align-items: center;
	background-color: #fff;
	image{
		width: 140rpx;
		height: 140rpx;
		border-radius: 50%;
	}
	.infoitem{
		display: flex;
		// align-items: center;
		justify-content: space-around;
		flex-direction: column;
		height: 140rpx;
	}
}
.member{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	.memberitem{
		background-color: #fff;
		margin: 20rpx 30rpx;
		text-align: center;
		border: 1rpx solid #D8D8D8;
		.price{
			color: #FF7E38;
		}
	}
	.active{
		border: 1rpx solid #FF7E38;
	}
}
.update{
	background: rgba(255, 195, 0, 0.41);
	border-radius: 50rpx;
	
	text-align: center;
	width: 686rpx;
	margin: 30rpx auto;
	box-sizing: border-box;
}
</style>
